package sort;

import org.junit.Test;

/**
 * @author zhm
 * @date 2020/10/19
 */
public class SortTest {

    @Test
    public void test(){
        int[] arr = {6,5,4,3,2,1};
        InsertionSort.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }

    @Test
    public void test2(){
        int[] arr = {6,5,4,3,2,1};
        MergeSort.sort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }

    @Test
    public void test3(){
        int[] arr = {6,5,7,3,2,5,3,1,8};
        QuickSort.quickSort(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }
    }
}
